package com.wjb.xietong;

import java.util.ArrayList;

import com.wjb.xietong.ota.task.TaskInfo;
import com.wjb.xietong.ota.task.TaskInfo.CommentInfo;

public class TestData {
	private static TestData intance = new TestData();
	
	private ArrayList<TaskInfo> noFTaskList0 = new ArrayList<TaskInfo>();
	private ArrayList<TaskInfo> okFTaskList0 = new ArrayList<TaskInfo>();
	private ArrayList<TaskInfo> delTaskList0 = new ArrayList<TaskInfo>();
	
	private ArrayList<TaskInfo> noFTaskList = new ArrayList<TaskInfo>();
	private ArrayList<TaskInfo> okFTaskList = new ArrayList<TaskInfo>();
	private ArrayList<TaskInfo> delTaskList = new ArrayList<TaskInfo>();
	
	private String[] strNoFinishTasks0 = {"早上打卡", "收藏店铺~", "去攻击对手", "发呆看电影"};
	private String[] strOKFinishTasks0 = {"吃午饭吼吼", "看完四部变形金刚", "高尔夫球", "啦拉拉"};
	private String[] strDelFinishTasks0 = {"去酒吧", "sleep", "开业DC侯冰", "聚会思密达", "入定"};
	
	private String[] strNoFinishTasks = {"早上打卡", "收藏店铺~", "去攻击对手", "发呆看电影", "sleep", "开业DC侯冰", "聚会思密达", "入定"};
	private String[] strOKFinishTasks = {"吃午饭吼吼", "看完四部变形金刚"};
	private String[] strDelFinishTasks = {"去酒吧", "高尔夫球", "啦拉拉"};
	
	private TestData(){
		initTestData();
	}
	
	public static TestData Instance(){
		return intance;
	}
	
	private void initTestData(){
		for(int i = 0; i < strNoFinishTasks0.length; i++){
			TaskInfo taskInfo1 = new TaskInfo();
			taskInfo1.title = strNoFinishTasks0[i];
			taskInfo1.commentList = getTestCommentListData(taskInfo1);
			noFTaskList0.add(taskInfo1);
		}
		
		for(int i = 0; i < strOKFinishTasks0.length; i++){
			TaskInfo taskInfo1 = new TaskInfo();
			taskInfo1.title = strOKFinishTasks0[i];
			taskInfo1.commentList = getTestCommentListData(taskInfo1);
			okFTaskList0.add(taskInfo1);
		}
		
		for(int i = 0; i < strDelFinishTasks0.length; i++){
			TaskInfo taskInfo1 = new TaskInfo();
			taskInfo1.title = strDelFinishTasks0[i];
			taskInfo1.commentList = getTestCommentListData(taskInfo1);
			delTaskList0.add(taskInfo1);
		}
		
		for(int i = 0; i < strNoFinishTasks.length; i++){
			TaskInfo taskInfo1 = new TaskInfo();
			taskInfo1.title = strNoFinishTasks[i];
			taskInfo1.commentList = getTestCommentListData(taskInfo1);
			noFTaskList.add(taskInfo1);
		}
		
		for(int i = 0; i < strOKFinishTasks.length; i++){
			TaskInfo taskInfo1 = new TaskInfo();
			taskInfo1.title = strOKFinishTasks[i];
			taskInfo1.commentList = getTestCommentListData(taskInfo1);
			okFTaskList.add(taskInfo1);
		}
		
		for(int i = 0; i < strDelFinishTasks.length; i++){
			TaskInfo taskInfo1 = new TaskInfo();
			taskInfo1.title = strDelFinishTasks[i];
			taskInfo1.commentList = getTestCommentListData(taskInfo1);
			delTaskList.add(taskInfo1);
		}
	}
	
	private ArrayList<CommentInfo> getTestCommentListData(TaskInfo info){
		ArrayList<CommentInfo> commentList = new ArrayList<CommentInfo>();
		
		CommentInfo comment1 = info.new CommentInfo();
		comment1.icoUrl = "";
		comment1.name = "风中的小Q";
		comment1.date = "2014-09-22 12：45";
		comment1.detail = "今天要吃饭睡觉打豆豆";
		commentList.add(comment1);
		
		CommentInfo comment2 = info.new CommentInfo();
		comment2.icoUrl = "";
		comment2.name = "秒卡者";
		comment2.date = "2014-09-22 12：50";
		comment2.detail = "顶楼上。。";
		commentList.add(comment2);
		
		CommentInfo comment3 = info.new CommentInfo();
		comment3.icoUrl = "";
		comment3.name = "风中的小Q";
		comment3.date = "2014-09-23 14：21";
		comment3.detail = "汗一个- -！";
		commentList.add(comment3);
		
		CommentInfo comment4 = info.new CommentInfo();
		comment4.icoUrl = "";
		comment4.name = "神行大宝";
		comment4.date = "2014-09-23 15：33";
		comment4.detail = "神秘任务啊~";
		commentList.add(comment4);
		
		CommentInfo comment5 = info.new CommentInfo();
		comment5.icoUrl = "";
		comment5.name = "jackHD";
		comment5.date = "2014-09-23 15：58";
		comment5.detail = "oh, kihh a ans.";
		commentList.add(comment5);
		
		CommentInfo comment6 = info.new CommentInfo();
		comment6.icoUrl = "";
		comment6.name = "刘的华仔";
		comment6.date = "2014-09-23 18：20";
		comment6.detail = "期待更好的任务，这个手昂";
		commentList.add(comment6);
		
		return commentList;
	}

	public ArrayList<TaskInfo> getNoFinishTaskList0() {
		return noFTaskList0;
	}
	
	public ArrayList<TaskInfo> getOKFinishTaskList0() {
		return okFTaskList0;
	}
	
	public ArrayList<TaskInfo> getDeleteTaskList0() {
		return delTaskList0;
	}
	
	public ArrayList<TaskInfo> getNoFinishTaskList() {
		return noFTaskList;
	}
	
	public ArrayList<TaskInfo> getOKFinishTaskList() {
		return okFTaskList;
	}
	
	public ArrayList<TaskInfo> getDeleteTaskList() {
		return delTaskList;
	}
}
